package com.letoken.platform.repo.admin.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import software.amazon.awssdk.services.sqs.endpoints.internal.Value;

/**
 * <p>
 *
 * </p>
 *
 * @author 作者
 * @since 2023-08-04
 */
@Getter
@Setter
@TableName("admin_fund_config")
@ApiModel(value = "AdminFundConfig对象", description = "")
public class AdminFundConfig extends Model<AdminFundConfig> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("天数")
    @TableField("date")
    private Integer date;

    @ApiModelProperty("日化")
    @TableField("rate")
    private BigDecimal rate;

    @ApiModelProperty("最低投入")
    @TableField("min")
    private BigDecimal min;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("eco_rate")
    private BigDecimal ecoRate;

    @TableField("give")
    private Integer give;

    @TableField("title")
    private String title;

    @TableField("day_rate")
    private String dayRate;

    @TableField("week_rate")
    private BigDecimal weekRate;

    @TableField(exist = false)
    private BigDecimal fund;
    @TableField("max_fund")
    private BigDecimal maxFund;

    @TableField("url")
    private String url;

    @TableField("background_url")
    private String backgroundUrl;

    @TableField(exist = false)
    private BigDecimal monthlyPercentage;

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
